// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class UserBindGen : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<UserBindGen, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string UserCode { get; set; }
        public string GeneratorCode { get; set; }
        public string DTUID { get; set; }
        public string GensetNum { get; set; }
        public DateTime? BindTime { get; set; }
        public DateTime? UnBindTime { get; set; }
        public bool? IsBind { get; set; }
        public string PrjCode { get; set; }
    
        public void Configure(EntityTypeBuilder<UserBindGen> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.BindTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.DTUID).HasMaxLength(50);

                entityBuilder.Property(e => e.GeneratorCode).HasMaxLength(50);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(100);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(100);

                entityBuilder.Property(e => e.UnBindTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.UserCode).HasMaxLength(50);
        }

    }
}

